package com.yxq.mdt.app.modules.personal.bean;

import android.text.TextUtils;

import com.yxq.mdt.app.utils.StringUtils;

import java.util.List;

/**
 * @author L
 * @time 2019-11-29
 * @describe 足迹$
 */
public class FootBean {

    /**
     * pageNum : 1
     * pageSize : 10
     * total : 86
     * pages : 9
     * list : [{"userId":110421,"createTime":"2019-04-19 14:17:01","CharacterTypeHelper":2,"title":"我要发布动态了","content":"我要发布动态了","id":"fc692e88c61a4bcb929540a0a326f3c9","toUserId":1},{"userId":110421,"createTime":"2019-04-19 14:17:01","CharacterTypeHelper":2,"title":"我要发布动态了","content":"我要发布动态了","id":"fc692e88c61a4bcb929540a0a326f3c9","toUserId":1},{"userId":110421,"createTime":"2019-04-19 14:17:01","CharacterTypeHelper":2,"title":"我要发布动态了","content":"我要发布动态了","id":"fc692e88c61a4bcb929540a0a326f3c9","toUserId":1},{"userId":110421,"createTime":"2019-04-19 14:17:01","CharacterTypeHelper":2,"title":"我要发布动态了","content":"我要发布动态了","id":"fc692e88c61a4bcb929540a0a326f3c9","toUserId":1},{"userId":110421,"createTime":"2019-04-19 14:17:01","CharacterTypeHelper":2,"title":"我要发布动态了","content":"我要发布动态了","id":"fc692e88c61a4bcb929540a0a326f3c9","toUserId":1},{"userId":110421,"createTime":"2019-04-19 14:17:01","CharacterTypeHelper":2,"title":"我要发布动态了","content":"我要发布动态了","id":"fc692e88c61a4bcb929540a0a326f3c9","toUserId":1},{"userId":110421,"createTime":"2019-04-19 14:17:01","CharacterTypeHelper":2,"title":"我要发布动态了","content":"我要发布动态了","id":"fc692e88c61a4bcb929540a0a326f3c9","toUserId":1},{"userId":110421,"createTime":"2019-04-19 14:17:01","CharacterTypeHelper":2,"title":"我要发布动态了","content":"我要发布动态了","id":"fc692e88c61a4bcb929540a0a326f3c9","toUserId":1},{"userId":110421,"createTime":"2019-04-19 14:17:01","CharacterTypeHelper":2,"title":"我要发布动态了","content":"我要发布动态了","id":"fc692e88c61a4bcb929540a0a326f3c9","toUserId":1},{"userId":110421,"createTime":"2019-04-19 14:17:01","CharacterTypeHelper":2,"title":"我要发布动态了","content":"我要发布动态了","id":"fc692e88c61a4bcb929540a0a326f3c9","toUserId":1}]
     */

    private int pageNum;
    private int pageSize;
    private int total;
    private int pages;
    private List<ListBean> list;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * userId : 110421
         * createTime : 2019-04-19 14:17:01
         * CharacterTypeHelper : 2
         * title : 我要发布动态了
         * content : 我要发布动态了
         * id : fc692e88c61a4bcb929540a0a326f3c9
         * toUserId : 1
         */

        private String userId;
        private String createTime;
        private int type;
        private String title;
        private String content;
        private String id;
        private String toUserId;
        private int year;
        private int month;

        public int getMonth() {
            if (!TextUtils.isEmpty(createTime)) {
                return StringUtils.getMonth(createTime);
            }
            return month;
        }

        public int getYear() {
            if (!TextUtils.isEmpty(createTime)) {
                return StringUtils.getYear(createTime);
            }
            return year;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getToUserId() {
            return toUserId;
        }

        public void setToUserId(String toUserId) {
            this.toUserId = toUserId;
        }
    }
}
